package org.loujiarong.yugioh.gameplay.duel;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.loujiarong.yugioh.gameplay.card.Card;
import org.loujiarong.yugioh.gameplay.card.DummyCard;

public abstract class Deck
{
	protected List<Card> cards;

	public Deck() {
		cards = new ArrayList<Card>();
	}	
	
	public List<Card> getCards() {
		return cards;
	}

	public void setCards(List<Card> cards) {
		this.cards = cards;
	}

	public void add(Card card) {
		cards.add(card);
	}
	
	public void remove(Card card) {
		cards.remove(card); 
	}
	
	public void shuffle() {
		Collections.shuffle(cards);
	}
	
	public Card getCard(int n) {
		return cards.get(n);
	}
}